home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / inventor / noodle / MyGrids.h < prev    next >
Encoding:
Text File  |  1994-08-02  |  2.4 KB  |  99 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*
  18.  |   MyGrids.h
  19.  |
  20.  |   Author(s): Paul Isaacs
  21.  |
  22.  */
  23.  
  24. // This file contains the strings describing 
  25. // the two grids used in noodle
  26. //
  27. // char *myGridBuffer
  28. // char *myGrdiXYBuffer
  29. //
  30.  
  31. char *myGridBuffer =
  32. { "#Inventor V1.0 ascii\n\
  33. \n\
  34. Separator {\n\
  35.     PickStyle { style UNPICKABLE }\n\
  36.     LightModel { model BASE_COLOR }\n\
  37.     NormalBinding { value DEFAULT }\n\
  38. # Grid\n\
  39.     BaseColor { rgb 0.2 0.2 0.2 }\n\
  40.     Array {\n\
  41.         numElements1 61\n\
  42.         separation1 .5 0 0\n\
  43.         origin CENTER\n\
  44. \n\
  45.         Coordinate3 { point [ 0 -15 -.00001, 0 15 -.00001 ] }\n\
  46.         LineSet { numVertices [ 2 ] }\n\
  47.     }\n\
  48.     Array {\n\
  49.         numElements1 61\n\
  50.         separation1 0 .5 0\n\
  51.         origin CENTER\n\
  52. \n\
  53.         Coordinate3 { point [ -15 0 -.00001, 15 0 -.00001 ] }\n\
  54.         LineSet { numVertices [ 2 ] }\n\
  55.     }\n\
  56. # Axes\n\
  57.     BaseColor { rgb 0.4 0.0 0.0 }\n\
  58.         Coordinate3 { point [ -15.0 0.0 0.0, 15.0 0.0 0.0,\n\
  59.             0.0 -15.0 0, 0.0 15.0 0.0 ]\n\
  60.     }\n\
  61.     LineSet { numVertices [ 2, 2 ] }\n\
  62. }"};
  63.  
  64.  
  65.  
  66. char *myGridXYBuffer =
  67. { "#Inventor V1.0 ascii\n\
  68. \n\
  69. Separator {\n\
  70.     PickStyle { style UNPICKABLE }\n\
  71.     LightModel { model BASE_COLOR }\n\
  72.     NormalBinding { value DEFAULT }\n\
  73. # Grid\n\
  74.     BaseColor { rgb 0.2 0.2 0.2 }\n\
  75.     Array {\n\
  76.         numElements1 61\n\
  77.         separation1 .5 0 0\n\
  78.         origin CENTER\n\
  79. \n\
  80.         Coordinate3 { point [ 0 -.00001 -15, 0 -.00001 15 ] }\n\
  81.         LineSet { numVertices [ 2 ] }\n\
  82.     }\n\
  83.     Array {\n\
  84.         numElements1 61\n\
  85.         separation1 0 0 .5\n\
  86.         origin CENTER\n\
  87. \n\
  88.         Coordinate3 { point [ -15 -.00001 0, 15 -.00001 0 ] }\n\
  89.         LineSet { numVertices [ 2 ] }\n\
  90.     }\n\
  91. # Axes\n\
  92.     BaseColor { rgb 0.4 0.0 0.0 }\n\
  93.     DrawStyle { lineWidth 2 }\n\
  94.     Coordinate3 { point [ -15.0 0.0 0.0, 15.0 0.0 0.0,\n\
  95.             0.0 0.0 -15.0, 0.0 0.0 15.0 ]\n\
  96.     }\n\
  97.     LineSet { numVertices [ 2, 2 ] }\n\
  98. }" };
  99.